package com.jz.learning.demo.DEMO_03;

import com.jz.learning.demo.DEMO_03.config.AppConfig;
import com.jz.learning.demo.DEMO_03.pojo.ServiceA;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

		ServiceA bean = annotationConfigApplicationContext.getBean(ServiceA.class);

		bean.showA();

	}
}
